package com.itcast.common.exception.pojo;

import lombok.Getter;

@Getter
public class CsException extends RuntimeException{

    private Integer status;//状态码

    public CsException(Integer status,String message){
        super(message);
        this.status = status;
    }

    /*
     * 使用异常类枚举
     * */
    public CsException(ExceptionEnum exceptionEnum){
        super(exceptionEnum.getMessage());
        this.status=exceptionEnum.getStatus();
    }
}
